package cn.smxy.client;

import cn.smxy.param.PlantSearchParam;
import cn.smxy.util.R;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "search-service",path = "/search")
public interface SearchClient {

    /**
     * 植物搜索接口
     * @param plantSearchParam
     * @return
     */
    @PostMapping("/plant")
    R plantList(@RequestBody PlantSearchParam plantSearchParam);
}
